package com.working.home.ui

import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.working.home.model.BannerResponse

class BannerAdapter : ListAdapter<BannerResponse, RecyclerView.ViewHolder>(object :
    DiffUtil.ItemCallback<BannerResponse>() {
    override fun areItemsTheSame(oldItem: BannerResponse, newItem: BannerResponse): Boolean {
        return oldItem.id == newItem.id
    }

    override fun areContentsTheSame(oldItem: BannerResponse, newItem: BannerResponse): Boolean {
        return oldItem == newItem
    }
}) {
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
        TODO()
    }

    override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
    }
}